home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / EBL409 / BATDOC.BAT < prev    next >
Encoding:
DOS Batch File  |  1995-11-04  |  18.2 KB  |  473 lines

  1. bat * Loading HELP and DOCUMENTATION .....
  2.  
  3. *           Written 10/5/83 through 01/15/90
  4. *   (c) Copyright 1983 to 1995 by Seaware Corp. all rights reserved.
  5. *    This batch file REQUIRES EBL PLUS for proper execution!
  6.  
  7.          **** NOTE! NOTE! NOTE! NOTE! ****
  8.  RAM    |* <-----Change 'RAM' to 'BIOS' if PC isn't 100% IBM Compatible!
  9.  
  10.  if %G = .goto. then %G = | goto -%F
  11.  else %F =
  12.  else goto -line0
  13.  
  14.  
  15. -header * Routine prints general purpose header for help text
  16.     stack.purge            |*  remove any pre-typed keystrokes.
  17.     %n = %i $ 1 ( %i # - 2 ) & . & ( %i $ ( %i # - 1 ) 2 ) |* extract section # from page #
  18.     color( white on black )
  19.     cls
  20.     color( white on cyan  )
  21.     window( 1, 1, 79, 3, Combo)
  22.     begtype
  23.  \%H                     Page \%n
  24.  
  25. \07    Press:  PGDN for next page,   PGUP for prev page,  HOME for main menu.
  26. end
  27.     color( white on black)
  28.     colorchar ` as color(yellow on black)
  29.     window( 1, 5, 79, 25, Combo)
  30.     return
  31.  
  32. -scroll * Routine accepts key for scrolling help text
  33.     %e = 0
  34.     inkey %k
  35.     if %k = KEY("Ctrl-C") then goto -opt0
  36.     if %k = KEY(Esc)  %i = 0      | goto -line0
  37.     if %k = KEY(Home) %i = 0      | goto -line0
  38.     if %k = KEY(Pgup) %i = %i - 1 | cls | %F = line%i | goto -%F
  39.     if %k = KEY(Pgdn) %i = %i + 1 | cls | %F = line%i | goto -%F
  40.     goto -scroll |* ignore any other key.
  41.  
  42. -line1404
  43. -line99
  44. -line0
  45.     %e = 0
  46.     color white on black
  47.     cls begtype
  48. \1F╔════════════════ BATDOC ═══════════════════╗\07       \17┌─────────────────────────┐\07
  49. \1F║     Menu driven HELP and DOCUMENTATION.   ║\07       \17│ User supported software │\07
  50. \1F╙───────────────────────────────────────────╜\07       \17│      by        │\07
  51.                              \17│              │\07
  52.     \4fGENERAL:\07                       \17│ Seaware Corp.        │\07
  53. \0e 1.        Introduction and how to use this Help.   \07   \17│ P.O. Box 1656        │\07
  54. \0e 2.        The user supported concept & ASP.         \07   \17│ Delray Beach, FL 33444    │\07
  55. \0e 3.        Internet World Wide Web home page.         \07   \17│ seaware@shadow.net    │\07
  56. \0e 4.        What EBL is... an introduction!         \07   \17│             │\07
  57. \0e 5.        EBL PLUS: The inside story!          \07   \17│ Order your registered    │\07
  58.                              \17│ copy for $49 + $3 s/h   │\07
  59.      \4fThe EBL PLUS Language\07               \17│ from us directly or FAX │\07
  60. \0e 6.        Showing things on the display.         \07   \17│ us at 800/634-8188    │\07
  61. \0e 7.        Reading data from users.             \07   \17│ (MC/Visa welcome)    │\07
  62. \0e 8.        Controlling program flow             \07   \17│             │\07
  63. \0e 9.        Using the keyboard stack.             \07   \17│ Please copy and share    │\07
  64. \0e 10.     Sensing program's results.               \07   \17│ BAT.COM, BATDOC.BAT,    │\07
  65. \0e 11.     Assignment statements.             \07   \17│ and BATDEMO.BAT for    │\07
  66. \0e 12.     Debugging aids.                 \07   \17│ non-commercial uses    │\07
  67. \0e 13.     Extended functions:              \07   \17│ only.            │\07
  68.        \0eConsole\07 \0eString\07 \0eSystem\07 \0eControl\07 \0eAdd-on\07       \17└─────────────────────────┘\07
  69. \0e 14.     Additional information.             \07
  70. \0e X.        eXit.                     \07
  71.  
  72.     Select the starting topic and press ─┘
  73. END
  74.  
  75. -entry0
  76.     %o =
  77.     if left(%F,3) = "opt" then field( ( ( %F $ 4 ) + 1 ) )
  78.     %A = Select( color( yellow ), color( black on white ))
  79.     if %R > 20 then goto -entry0
  80.     if %A = Enter then %F = "opt" & %R | goto -%F
  81.     if %A = ESC   then goto -opt0
  82.     if Length(%A) > 1 then beep
  83.     goto -entry0
  84.  
  85. -opt20    ********** Display final EXIT window ***********
  86. -opt0    color yellow on black  |* Setup the window contents
  87.     type left(field(1, color(black on white)),51) |* change b/w colored bar to yellow
  88.     color white on blue
  89.     window( 18, 13, 48, 20)
  90.     type "Ready to leave on-line help!"
  91.     color Cyan on blue
  92.     type "Make selection & press ─┘"
  93.     type
  94.     colorchar . as color( yellow on blue)
  95.     type ". Exit . . Demo . .Return."
  96.     colorchar
  97.     %A = "" | %F = ""
  98.         ** Now actually do the bouncing bar menu **
  99. -End1    type " Exit to DOS               " | If %A = Enter then exit
  100. -Endit    %A = select( color( yellow on blue), color( black on white ), Arrow)
  101.     if %A = Esc then goto -line0
  102.     goto -End%R
  103. -End2    type " Demonstrate other features" | If %A = Enter then stack "BATDEMO" |exit
  104.          else goto -endit
  105. -End3    type " Return to on-line help    " | If %A = Enter then goto -line0
  106.          else goto -endit
  107.  
  108. -line100 *************** Begin various chapters to show ****************
  109. -opt1    %h = INTRODUCTION | %i = 100 | call -header
  110.     begtype
  111.     This program will provide you with help information on the use of
  112. the EXTENDED BATCH LANGUAGE PLUS.  It is designed to allow for
  113. easy access and retrieval of information that would be harder to find
  114. by more conventional means.
  115.  
  116.     The information is broken up into multiple sections.  Each section
  117. may have several pages.  To access each page in order, just keep
  118. pressing the PGDN key.    At the top of your screen is the name of the
  119. section which you are in and the page number.
  120.  
  121. `Note:`
  122.  
  123.     If you wish to directly enter another section now, press the `HOME`
  124. key to return to the main menu, enter the proper `section number` and
  125. press the `─┘` key.
  126.  
  127. end
  128.      goto -scroll
  129. -line101 call -header | begtype
  130. While in any of these sections, there are just three keys needed:
  131.  
  132. PGDN -    This key will advance to the next page of any section. If
  133.     there are no more pages in the section, then it will advance
  134.     to the next section.
  135.  
  136. PGUP -    This key will back up to a previous page within a section.
  137.     If there are no more previous pages within a section, it
  138.     will backup to the previous section.
  139.  
  140. HOME or ESC - Either of these keys will return directly to the
  141.     main menu. From the menu, any section can be looked at
  142.     directly by entering the section number and pressing ─┘.
  143. end
  144.     goto -scroll
  145. -line199 %i = 102
  146. -line102 call -header | begtype
  147.   There are several sections where you will be given questions and answers.
  148. If you would like to peek and see answer without specifically answering it,
  149. you can press the space bar to reveal the answer letter by letter.
  150.  
  151.     One interesting facet you should know while using this on-line help
  152. and documentation is that you are using the EXTENDED BATCH LANGUAGE
  153. program to display and control these menus.
  154.  
  155.     Never before has a batch language been so powerful on the IBM
  156. personal computer as to be able to provide a facility like this.  In
  157. the following pages of description, we hope that you will see, as we
  158. did, that this program has extraordinary capability which does much
  159. more than just expand the capability of DOS.  In fact, it gives new
  160. power to your system by providing capabilities never before possible.
  161. end
  162.     goto -scroll
  163. -opt2
  164. -line103 %i = 200
  165. -line200 %H = "The User Supported Concept & ASP" | call -header | begtype
  166.  
  167.  ╓─                                     ─╖
  168.  ║    The license fee for Extended Batch Language-Plus is $49 + $3 s/h      ║
  169.  ║                                      ║
  170.  ║ You are encouraged to copy and share BAT.COM, BATDOC.BAT, and      ║
  171.  ║ BATDEMO.BAT for non-commercial purposes only. You must not modify      ║
  172.  ║ any of these files or make a profit from their distribution.       ║
  173.  ║                                      ║
  174.  ║ Internet users may visit our World Wide Web site for the latest news:  ║
  175.  ║    http://www.shadow.net/~seaware                      ║
  176.  ║                                      ║
  177.  ╙─     (c) Copyright 1982 through 1995 by Seaware Corp.         ─╜
  178.               All rights reserved.
  179.  
  180.   Seaware Corp.                      seaware@shadow.net
  181.   Post Office Box 1656                           800/634-8188
  182.   Delray Beach, FL 33444
  183. end
  184.     goto -scroll
  185. -line201 call -header | begtype
  186. When you order EBL-PLUS, you will receive:
  187.  
  188.  ■ A detailed users guide.  This hardcopy manual has about 250 pages of
  189.                 descriptions, examples, useful utilities, and
  190.                 tips on this program's use.
  191.  
  192.  ■ The EBL-PLUS Diskette    Containing the latest program version,
  193.                 useful utilities, help files, and examples.
  194.                 You also receive our "Executive Menu Facility"
  195.                 to get started using EBL with zero effort.
  196.  
  197.  ■ Free support:
  198.      o    World Wide Web        An on-line forum for user's ideas, tips,
  199.                 programs, and the latest news.
  200.  
  201.      o    "The EBL User"      Our Web-Newsletter provides information, tips, and
  202.                 and ideas on how to apply EBL-Plus to your needs.
  203. end
  204.      goto -scroll
  205. -line202 call -header | begtype
  206.  
  207. All users are invited to use the World Wide Web, (See next section for more
  208. information).  Our users have signed on thousands of times and testified
  209. that this service has helped make Extended Batch Language-PLUS one of their
  210. best supported programs on their system.
  211.  
  212. The concept of excellent user support is buried deep in our roots.  Much of
  213. our philosophy was founded by Andrew Fugleman at Headlands Press, Inc.    I
  214. would like to thank Andrew for his inspiration and help.  Because I feel
  215. that good software should have someone standing behind it, we at Seaware
  216. want to put your patronage directly into support for you as our thanks of
  217. your support of us.  You will find it well worth it.
  218.  
  219.      Seaware Corp. ≡≡≡≡ Post Office Box 1656 ≡≡≡≡ Delray Beach, FL 33444
  220.            ≡≡≡≡     800/634-8188     ≡≡≡≡
  221. end
  222.      goto -scroll
  223. -line299 %i = 203
  224. -line203 %H = "The User Supported Concept & ASP" |call -header | begtype
  225. Seaware is a member of the Association of Shareware Professionals, a
  226. non-profit group dedicated to promoting the shareware concept
  227. (try-before-you-buy software) as a unique marketing alternative to
  228. traditional retail distribution.  We agreed to do our best to handle
  229. customer complaints when we joined ASP.
  230.  
  231. We're committed to solve your problems quickly, and to your liking.  But
  232. if you feel like you got the short end of the stick, you can take your
  233. complaint to the ASP Ombudsman.  We'll abide by the Ombudsman's final
  234. decision on your matter, no matter what the outcome.  You have our word
  235. on it.
  236.  
  237. ASP wants to make sure that the shareware principle works for you.  If
  238. you are unable to resolve a shareware-related problem with an ASP member
  239. by contacting the member directly, ASP may be able to help.  The ASP
  240. Ombudsman can help you resolve a dispute or problem with an ASP member,
  241. but does not provide technical support for members' products.  Please
  242. write to the ASP Ombudsman at P.O.  Box 5786, Bellevue, WA 98006 or send
  243. a Compuserve message via easyplex to ASP Ombudsman 70007,3536".
  244. end
  245.     goto -scroll
  246. -opt3
  247. -line204 %i = 300
  248. -line300 %H = "BAT - BBS" | call -header | begtype
  249.  
  250. One of the special services we provide to EBL PLUS users
  251. is through a communication medium called the World Wide Web. If you
  252. subscribe to Compuserve, American On-Line, Prodigy, or another Internet
  253. Service Provider, you can access our Web home page for Seaware at:
  254.  
  255.   `http://www.shadow.net/~seaware`
  256.  
  257. The following list shows the many things that our home page provides....
  258.  
  259. end
  260.     goto -scroll
  261. -line399 %i = 301
  262. -line301 call -header | begtype
  263.     * Receive program updates as soon as they are available!
  264.  
  265.     * A hotline for your questions!
  266.  
  267.     * It will be ready to give helpful ideas.
  268.  
  269.     * Programs and Utilities are available to download.
  270.  
  271.     * Users are welcome to upload their programs/ideas.
  272.  
  273.     * Tips and techniques are on-line.
  274.  
  275. end
  276.     goto -scroll
  277. -opt4
  278. -line302 %i = 400
  279. -line400 %H = "Introduction" | call -header | begtype
  280.   EBL is short for Extended Batch Language.  EBL PLUS is a powerful
  281. productivity tool for the IBM Personal Computer.  It represents a
  282. significant advance in providing a comprehensive yet easy to learn and use
  283. facility for controlling tasks you give your computer.    It can even give
  284. you on-line documentation SUCH AS THIS!
  285.  
  286.   EBL is a command programming language.  It is a high level language that
  287. can be used as a direct replacement or in conjunction with DOS batch files.
  288. It can operate with IBM PC-DOS versions 2.0 through 4.x and OS/2 1.x real
  289. mode.  Compared with standard PC-DOS batch files, EBL has superior control
  290. structures, string handling, and user interfaces.  It also has tracing
  291. facilities, and is easy to learn and use.  Many aspects of the language are
  292. like BASIC.  Users of VM/370 will also find it similar to EXEC2.  It seems
  293. that both "end users" and programmers find BAT a simple and effective
  294. language.
  295.  
  296. end
  297.     goto -scroll
  298. -line401 call -header | begtype
  299. With Extended Batch Language, you can have:
  300.  
  301. -    Better control of messages to the screen
  302.  
  303. -    Accept responses from the user and create responses to programs
  304.  
  305. -    String handling operations (substring, length, etc.)
  306.  
  307. -    Arithmetic expressions and assignments
  308.  
  309. -    Comparisons and program return codes
  310.  
  311. -    Search for files or tell if they exist
  312.  
  313. -    Complete freedom to mix DOS and BAT commands within the same control file
  314.  
  315.  
  316. Let's look at how it measures up to today's DOS......
  317. end
  318.     goto -scroll
  319. -line402 call -header | begtype
  320. Function       DOS 2.0 to 4.x      Extended Batch Lang.
  321. ----------       --------------      --------------------
  322. BEEP                       X
  323. CALL/RTN           Limited           X
  324. CLS               X           X
  325. BEGSTACK                   X
  326. BEGTYPE                    X
  327. EXIT               X           X
  328. GOTO               X           X
  329. IF               Limited           X
  330. INKEY/READ                   X
  331. READSCRN                   X
  332. STACK                       X
  333. TYPE               X           X
  334. TRACE                       X
  335. Assignments                   X
  336. Global Variables               X
  337. Return Codes           X           X
  338. Windows                    X
  339. end
  340.     goto -scroll
  341. -line403 call -header | begtype
  342.   As you can see from the previous chart, EBL PLUS has more
  343. power and enhanced capabilities than any version of DOS!.  This
  344. program uses these capabilities to solve common problems for......
  345.  
  346.   The system programmer - who needs to do long sequences of tasks between
  347. linker, compilers, debuggers, and editors.  He can now create an
  348. intelligent link between these programs.  For instance, he may wish to do a
  349. link depending on if the previous compile was successful.  He can also
  350. respond automatically from a keyboard "stack" into various utilities.
  351.  
  352.   The secretary - who has several types of tasks to perform (word
  353. processing, accounting packages, etc) and requires a simple way of changing
  354. from one type of task to another, perhaps with optional help text.
  355.  
  356.   The student - who wishes to go from one game to another without having to
  357. learn the system commands required to make each available.
  358.  
  359.   Testers - who wish to automate long, boring tests and procedures on the
  360. personal computer. An excellent tool for a manufacturing line.
  361. end
  362.     goto -scroll
  363. -line499 %i = 404
  364. -line404 call -header | begtype
  365.  
  366.     The effect of using EBL is to put "covers" on the programs and system
  367. that it controls.  In UNIX they call it shells, in VM they call it EXECs,
  368. but to you it simply makes things friendly.  Described in these pages is a
  369. solution to batch files through the use of Extended Batch Language.  A
  370. friendly interface to you can now be easily created.
  371.  
  372.   Once you have looked over the descriptions of each command, browse
  373. through the BATDEMO.BAT file and look at the commands in operation.  By
  374. trying out some sample programs, you should be able to gain a full
  375. understand of how to write some powerful batch files by using Extended
  376. Batch Language.
  377.  
  378.  
  379.  
  380. Copyright (c) 1982 to 1995 by Seaware Corp.           Program by
  381. All Rights reserved by Seaware Corp.               Frank Canova
  382.  
  383. end
  384.      goto -scroll
  385. -opt5
  386. -line405 %i = 500
  387. -line500 %H = "EBL PLUS: The inside story!" | call -header| begtype
  388. We rewrote the book!  Almost everything you could possible have is now
  389. in Extended Batch Language-PLUS.  We took time in getting everyone's
  390. suggestions into it, and used very little memory in doing it.
  391.  
  392.      *     Menus are  easy to create.  Just use the "Executive Menu
  393.      Facility" to create customized menus the way YOU want to
  394.      see  them.  This  automatic  procedure,  written in EBL,
  395.      will create a    custom    menu  without ever having to know
  396.      any  details  about  the  EBL    Language or batch  files.
  397.      Using your PC couldn't be easier!
  398.  
  399.      *     Create the  "Look-and-feel"  of  your  choice.  Colorful
  400.      windows  that use bouncing bar selections, pop-ups, fill
  401.      in the blank fields, and action bars are easily created.
  402.  
  403.      *     Complete freedom with    all variables.    Strings can be up
  404.      to 255 characters mixed  case, numbers to 19 digits. Use
  405.      EBL-Plus's  English-like  commands  to  integrate appli-
  406.      cations together, set up printers, or automate programs.
  407. end
  408.     goto -scroll
  409. -line501 call -header | begtype
  410.      *     Extended functions give you  additional  power where you
  411.      need    it.  Intended  for  programmers  needing  special
  412.      capabilities,    several types of functions are available:
  413.      DOS  support (CHDIR,  MKDIR,  REBOOT), low  level system
  414.      support  (PEEK,  POKE,  INT86), string  support  (STRIP,
  415.      LOWER, UPPER), and MUCH more... all built into EBL-PLUS.
  416.  
  417.      *     Create your own Add-On  functions  to EBL. If    you  have
  418.      special ideas for  the EBL language, you can create them
  419.      using    MASM,  C,  Pascal,  etc.  The    source    code  for
  420.      Seaware's add-on  functions (written in Turbo Pascal and
  421.      MASM) is provided as an example to registered users. Our
  422.      samples show you how to reserve from 0 to  64K of memory
  423.      for "extended variables" that can have long  descriptive
  424.      names and create arrays.  And    for floating point arith-
  425.      metic, just load the Turbo Pascal BCD Math add-on.
  426. end
  427.     goto -scroll
  428. -line599 %i = 502
  429. -line502 call -header | begtype
  430.      *     Full support for many more environments like PC Network,
  431.      TopView, Windows, DESQview and of course DOS 2 to DOS 4.
  432.      Now EBL Plus even supports OS/2 and 4DOS!
  433.  
  434.      *     File I/O is  easy within EBL PLUS. Use it to  setup
  435.      printers,  keep  configuration  information,  initialize
  436.      programs, or even create other batch files!
  437.  
  438.      *     Error recovery is now available  within batch files!  In
  439.      cases where  an error    is  detected  while the EBL batch
  440.      file  is  running,  you  can  now  include a  routine to
  441.      recover gracefully from the problem.
  442. end
  443.      goto -scroll
  444.  
  445. -on.error-
  446.     %e = %e + 1 | if %e > 2 then %L = ? | skip 5
  447.     if %R <> 6 then skip 7
  448.     %G = .goto.
  449.     color 8F | type "Loading part 2 ..."
  450.     leave
  451.     batdoc2
  452. bat *
  453. bat beep type "ERROR! BATDOC2.BAT overlay is missing!" | exit
  454. bat exit
  455. begtype
  456.  
  457.      Unexpected error \%S%R in line \%S%L !
  458.  
  459.      This batch file was error free when it was distributed
  460.      by Seaware. An error indicates that it was most likely
  461.      modified by someone improperly. To get an updated demo
  462.      diskette send $10 to Seaware directly or contact our
  463.      Internet Web page at http://www.shadow.net/~seaware
  464.  
  465.  
  466.             Seaware Corp.
  467.              Post Office Box 1656
  468.             Delray Beach, FL 33444
  469. end
  470. %G =
  471. %E = 0
  472. -end%R exit
  473.